#include "net/InetAddress.h"
#include <iostream>

using namespace toym;
using namespace toym::net;

int main() {
    InetAddress addr(10077);
    InetAddress addr2("192.168.0.1", 10086);

    std::cout << addr.toString() << std::endl;
    std::cout << addr.getPort() << std::endl;
    std::cout << addr2.toString() << std::endl;
    std::cout << addr2.getPort() << std::endl;
}